<template>
  <div class="address">
    <div class="top_biaoti">
      <van-nav-bar title="收货地址" left-arrow @click-left="onClickLeft"></van-nav-bar>
    </div>
    <div>
        <van-address-list
  v-model="chosenAddressId"
  :list="list"
  :disabled-list="disabledList"
  disabled-text="以下地址超出配送范围"
  default-tag-text="默认"
  @add="onAdd"
/>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      chosenAddressId: '1',
      list: [
        {
          id: '1',
          name: '张三',
          tel: '13000000000',
          address: '浙江省杭州市西湖区文三路 138 号东方通信大厦 7 楼 501 室'
        },
        {
          id: '2',
          name: '李四',
          tel: '1310000000',
          address: '浙江省杭州市拱墅区莫干山路 50 号'
        }
      ],
      disabledList: [
        {
          id: '3',
          name: '王五',
          tel: '1320000000',
          address: '浙江省杭州市滨江区江南大道 15 号'
        }
      ]
    }
  },
  methods: {
    onClickLeft () {
      this.$router.push('/me')
    },
    onAdd () {
      this.$router.push('/addressedit')
    }
  }
}
</script>

<style scoped>
.van-nav-bar {
  background-color: #4990e0;
}
.van-nav-bar__title {
  color: #fff;
}
.van-nav-bar .van-icon{
  color: #fff;
}
.van-cell__title{
    position: relative;
}
.tcdqzh{
    width: 290px;
    height: 40px;
    background-color: #4990e0;
    border: transparent;
    color: #fff;
    border-radius: 5px;
    margin-top: 70px;
}
.van-address-item .van-radio__icon--checked .van-icon {
    background-color: #1989fa;
    border-color: #1989fa;
}
.van-button--danger {
    color: #fff;
    background-color: #1989fa;
    border: 1px solid #1989fa;
}
</style>
